<?php
if ( defined('ABSPATH') )
	include_once ABSPATH . 'config.php';
else
    include_once 'config.php';

include_once ABSPATH."base/posts.php";

if(!isset($_COOKIE['ombid']))
{
	header( 'Location: index.php' ) ;
}

if(isset($_POST["status"])) {

    $post = new Post();

    $post->Update($_COOKIE['ombid'],$_POST["channel"],$_POST["status"],$_POST["link"], $_POST["tags"]);
    
    header( 'Location: index.php' ) ;
}




?>